package com.beta.service;

import com.baomidou.framework.service.ISuperService;
import com.baomidou.mybatisplus.plugins.Page;
import com.beta.dto.admin.AdminDto;
import com.beta.entity.Admins;

/**
 * Admins 表数据服务层接口
 */
public interface IAdminsService extends ISuperService<Admins> {

    Page<AdminDto> getAdmins(String userName, Page<AdminDto> page);

    Admins findAdminByName(String username);

    AdminDto getAdminById(Integer adminId);

    void executeCreateAdmin(AdminDto adminDto);

    void executeUpdateAdmin(Integer adminId, AdminDto adminDto);
}